#ifndef SHELLINVOKE_H
#define SHELLINVOKE_H


#include <QtCore>
#include <QtDeclarative>
#include <QObject>

 class ShellInvoke : public QObject
 {
     Q_OBJECT
     Q_PROPERTY(QString response READ response NOTIFY responseChanged)
     Q_PROPERTY(QString fileResponse READ fileResponse)
     Q_PROPERTY(QString waitFor WRITE setWaitFor)

 public:
     Q_INVOKABLE void shellAction(QString str,QStringList sArg);
     QString response() const;
     QString fileResponse() const;
     void setWaitFor(QString waitFor);
     ShellInvoke();
     //~ShellInvoke();
 private:
      QString m_response;
      QString m_fileResponse;
      QProcess *innerProcess;
      QString m_waitFor;
 signals:
     void responseChanged();
 };


#endif // SHELLINVOKE_H
